package com.jwds.digital.bios.business.rpc.feign;

import com.jwds.digital.bios.business.core.infrastructure.dto.feign.FlowBasicReqDTO;
import com.jwds.digital.bios.business.core.infrastructure.vo.feign.FlowBasicRespVO;
import com.jwds.digital.bios.business.rpc.feign.fallback.FlowBasicFeignFallBack;
import com.jwds.tdc.framework.application.lib.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author hesong
 */
@FeignClient(name = "bios-flow", path = "/flow/basic", fallback = FlowBasicFeignFallBack.class)
public interface FlowBasicFeign {
    /**
     * 查询条件
     *
     * @param reqDTO 查询条件
     * @return BaseResponse
     */
    @PostMapping("/all")
    BaseResponse<List<FlowBasicRespVO>> all(@RequestBody FlowBasicReqDTO reqDTO);

}
